package com.nageoffer.shortlink.admin.common.enums;

import com.nageoffer.shortlink.admin.common.convention.errorcode.IErrorCode;

public enum UserErrorCodeEnum implements IErrorCode {
//    User_TOEKN_FAIL("A000200","用户token验证失败"),
    User_NULL("B000200","用户记录不存在"),
    Username_EXISTS("B000201","用户名已存在"),
    User_EXISTS("B000202","用户已存在"),
    User_SAVE("B000203","用户记录新增失败"),
    User_HASLOGIN("B000204","用户已登录"),
    User_LOGOUT("B000205","用户退出失败");


    private final String code;

    private final String message;

    UserErrorCodeEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String code() {
        return code;
    }

    @Override
    public String message() {
        return message;
    }
}
